package com.googlecode.flealancemarket.service.commands.impl;

import com.googlecode.flealancemarket.metamodel.PrivateMessage;
import com.googlecode.flealancemarket.service.commands.GetPrivateMessageById;
import com.googlecode.flealancemarket.service.facades.MessagesFacade;

public class GetPrivateMessageByIdImpl implements GetPrivateMessageById {

    private Long id;
    private MessagesFacade facade;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public MessagesFacade getFacade() {
        return facade;
    }

    public void setFacade(MessagesFacade facade) {
        this.facade = facade;
    }

    public PrivateMessage execute() {
        return facade.getMessage(id);
    }

}
